#!/usr/bin/python
# -*- coding: utf-8 -*-

import Blender
from Blender import *
from Blender.Scene import Render
import sys, os

scn = Scene.GetCurrent()
context = scn.getRenderingContext()

x = context.imageSizeX()
y = context.imageSizeY()

fp = file('scene.txt', 'w')
fp.write(str(context.renderer) + '\n' + str(x) + '\n' + str(y))
fp.close()
